﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using eShop.Utility;
using eShop.Business;

public partial class widget_products_featured : BaseWidget
{
    public int MaxItem { get; set; }

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            productList.ShowPaging = false;
            productList.DataSource = ProductManager.FeaturedProducts(MaxItem);
            productList.DataBind();
        }
    }
}